Skip to content

Update CLI quoting section for PowerShell 7.3 changes#738

Closed
kovan wants to merge 1 commit intoclojure:masterfrom
kovan:docs/pwsh-quoting-update
Closed

Update CLI quoting section for PowerShell 7.3 changes#738
kovan wants to merge 1 commit intoclojure:masterfrom
kovan:docs/pwsh-quoting-update

Conversation

@kovan
Copy link
Copy Markdown

@kovan kovan commented Mar 14, 2026

Summary

PowerShell 7.3 changed how arguments with embedded quotes are passed to external programs via the $PSNativeCommandArgumentPassing preference variable. The triple-quote ("""str""") examples in the docs relied on the legacy "" escaping behavior that no longer applies in pwsh 7.3+.

  • Updates examples to use '\"str\"' form which works across both Windows PowerShell 5.1 and PowerShell 7.3+
  • Adds a note explaining the version difference and the $PSNativeCommandArgumentPassing preference
  • Removes the """ and "" forms that break in pwsh 7.3+

References:

Fixes #678

PowerShell 7.3 changed how arguments with embedded quotes are passed
to external programs via the PSNativeCommandArgumentPassing preference.
The triple-quote (""") workaround from the old docs relied on legacy
behavior that no longer applies in pwsh 7.3+.

Update the examples to use backslash-escaped double quotes inside
single quotes, which works across both Windows PowerShell 5.1 and
PowerShell 7.3+. Add a note explaining the version difference.

Fixes clojure#678
@puredanger
Copy link
Copy Markdown
Member

Author is not a contributor and this appears to be AI generated. Closing original issue as the powershell version is deprecated.

@puredanger puredanger closed this Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update CLI quoting section for recent Windows changes

2 participants